package com.xiangban.xiangbanmall.fegin;

import com.xiangban.xiangbanmall.fegin.fallback.UserServiceFallback;
import com.xiangban.xiangbanmall.model.res.ApiResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/11/11 15:11
 */
@Component
@FeignClient(value = "${system.pay}",fallbackFactory = UserServiceFallback.class)
public interface PayFeign {

    @RequestMapping("/pay/unifiedOrder")
    @ApiOperation("统一下单")
    ApiResult<Object> unifiedOrder(@RequestBody HashMap<String,String> map);

    @RequestMapping("/pay/transfers")
    @ApiOperation("提现接口")
    ApiResult<Object> transfers(@RequestBody HashMap<String,String> map);
}
